package com.wondersgroup.aida.aidemo.controller;

import dev.langchain4j.model.chat.ChatLanguageModel;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 紫麒麟vip
 * @create: 2025/2/15
 * Description:
 */
@RestController
public class OpenAiController {

    @Resource
    private ChatLanguageModel chatLanguageModel;

    @GetMapping("/openai/hello")
    public String hello(){
        return chatLanguageModel.generate("hello");
    }
}
